import request from '@/utils/request'
import IUser from '@/types/IUser'
import ISearch from '@/types/ISearch'
export default{
    login:(data:IUser)=>request.post('/users/login',data),
    getUsers:(data?:ISearch)=>request.get('/users/getUsers',{params:data}),
    getUserInfo:()=>request.get('/users/getUserInfo'),
    //根据token获取用户的权限
    getAuthMenus:()=>request.get('/menus/getAuthMenus')
}